package cn.toolck.minitomcat.container;

import cn.toolck.minitomcat.classLoader.MyClassLoader;

/**
 * @ClassName Context
 * @Description TODO
 * @Author Toolck Rin
 * @Date 2021/3/18 0:19
 * @Version 1.0
 **/
public class Context extends AbstractContainer implements Container {

    private MyClassLoader myClassLoader;

    private String docBase;

    public Context(String docBase) {
        this.docBase = docBase;
    }

    public Context() {
    }

    public String getDocBase() {
        return docBase;
    }

    public void setDocBase(String docBase) {
        this.docBase = docBase;
    }

    public MyClassLoader getMyClassLoader() {
        return myClassLoader;
    }

    public void creatMyClassLoader(String path) {
        this.myClassLoader = new MyClassLoader(path);
    }
}
